package com.sixteen.theGreat.workbench.service;

import com.sixteen.theGreat.workbench.entity.Talk;

import java.util.List;

public interface TalkService {
    /**
     * 新建说说
     * @param talk
     * @return
     */
    Object addTalk(Talk talk);

    /**
     * 根据userId 查询说说
     * @param userId
     * @return
     */
    List<Talk> queryTalkByUserId(String userId);

    /**
     * 删除我的说说
     * @param talkId
     * @return
     */
    Object removeTalk(String[] talkId);

    /**
     * 根据hostId查询好友说说
     * @param userId
     * @return
     */
    List<Talk> queryFriendTalkByHostId(String userId);

    /**
     * 根据userId查询我的说说以及 我的好友的说说
     * @param userId
     * @return
     */
    List<Talk> queryAllTalkByUserId(String userId);
}
